package com.xbongbong.admin.model.impl;

import com.xbongbong.admin.domain.dao.PaasMenuRetainDao;
import com.xbongbong.admin.domain.entity.PaasMenuRetainEntity;
import com.xbongbong.admin.model.PaasMenuRetainModel;
import com.xbongbong.paas.enums.DelEnum;
import com.xbongbong.paas.toolbox.util.DateUtil;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
import java.util.Map;

/**
 * @author guohui.zhang
 * @Title: paasMenuRetainModel业务实现
 * @date 2020/3/1910:49
 */
@Service("paasMenuRetainModel")
public class PaasMenuRetainModelImpl implements PaasMenuRetainModel {
    @Resource
    private PaasMenuRetainDao paasMenuRetainDao;
    @Override
    public List<PaasMenuRetainEntity> findEntitys(Map<String, Object> entity) {
        return paasMenuRetainDao.findEntitys(entity);
    }

    @Override
    public Integer insertBatch(List<PaasMenuRetainEntity> paasMenuRetainEntities, String corpid) {
        return paasMenuRetainDao.insertBatch(paasMenuRetainEntities);
    }

    @Override
    public Integer deleteBatch(List<Long> menuIds, String corpid) {
        return paasMenuRetainDao.deleteBatch(menuIds,corpid);
    }


}
